# ### 视图类
import time
class View():
    def login():
        name = input("请输入用户名:")
        pwd = input("请输入密码:")
        if name == "admin" and pwd == "11111":
            #调用欢迎界面 调用操作界面
            # self.welcome_view()
            View.welcome_view()
            time.sleep(1)
            View.operation_view()
            return True  # 说明登陆成功
        else:
            print("账号或密码不正确")

    def welcome_view():
        print("****************************************")
        print("*                                      *")
        print("*        Welcome To Star Bank          *")
        print("*                                      *")
        print("****************************************")

    def operation_view():
        print("****************************************")
        print("          开户(1)       查询(2)          ")
        print("          存钱(3)       取钱(4)          ")
        print("          转账(5)       改密(6)          ")
        print("          锁卡(7)       解卡(8)          ")
        print("          补卡(9)       退出(0)          ")
        print("****************************************")

if __name__ == "__main__":
    View.login()
